package com.example.demo.service;

import com.example.demo.dao.AnnouncementDao;
import com.example.demo.model.Announcement;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AnnouncementServiceImpl implements AnnouncementService{
    @Resource
    AnnouncementDao announcementDao;

    @Override
    public List<Announcement> findAnnouncement(String clazz) {
        return announcementDao.findAnnouncement(clazz);
    }
}
